package com.mechat.js

import android.os.Bundle
import android.webkit.JavascriptInterface
import com.custom.base.manager.SDActivityManager

open class AppJsHandler(name: String = "android") : BaseJsHandler(name, SDActivityManager.instance.lastActivity) {
    /**
     * 结束webView
     */
    @JavascriptInterface
    fun finish() {
        finishs()
    }

    /**
     * 查看图片
     */
    @JavascriptInterface
    fun lookImage(position:Int,path:ArrayList<String>){
        val bundle = Bundle()
        bundle.putStringArrayList("images",path)
        bundle.putInt("index",position)
//        IntentUtil.startActivity(LookImagesActivity::class.java,bundle)
    }
}